package com.itestor.iptv.modules.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * 权限设备关联表
 * @author masaki
 *
 */
@Entity
@IdClass(RoleGroupRobotPK.class)
@Table(name = "RoleGroupRobot")
public class RoleGroupRobot implements Serializable{
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -3096457690470971952L;
    
    public  transient final static int ROLE_LEVEL_READ=1;
    
    public transient final static int  ROLE_LEVEL_WRITE=2;
    
	/**
	 * 设备表主键
	 */
	private Integer idRobot;
	/**
	 * 权限表主键
	 */
	private Integer idRoleGroup;
	/**
	 * 权限等级
	 */
	private Integer roleLevel;
	
	@Id
	@Column(name = "IdRobot")
	public Integer getIdRobot() {
		return idRobot;
	}
	@Id
	@Column(name = "IdRoleGruop")
	public Integer getIdRoleGroup() {
		return idRoleGroup;
	}
	@Column(name = "RoleLevel")
	public Integer getRoleLevel() {
		return roleLevel;
	}
	public void setIdRobot(Integer idRobot) {
		this.idRobot = idRobot;
	}
	public void setIdRoleGroup(Integer idRoleGroup) {
		this.idRoleGroup = idRoleGroup;
	}
	public void setRoleLevel(Integer roleLevel) {
		this.roleLevel = roleLevel;
	}
}
